export const statusOptions = [
    {key: 'DRAFT', display_name: '待发布'},
    {key: 'PUBLISHED', display_name: '已发布'},
    {key: 'CLOSED', display_name: '已下架'}
];

export const statusKeyValue = statusOptions.reduce((acc, cur) => {
    acc[cur.key] = cur.display_name;
    return acc
}, {});


export const statusMap = {
    DRAFT: 'info',
    PUBLISHED: 'success',
    CLOSED: 'danger'
};
